home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsnorop.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  4.2 KB  |  128 lines

  1. /* Copyright (C) 1998 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsnorop.c,v 1.2 2000/09/19 19:00:30 lpd Exp $ */
  20. /* Stubs for unimplemented RasterOp */
  21. #include "gx.h"
  22. #include "gserrors.h"
  23. #include "gsrop.h"
  24. #include "gxdevcli.h"
  25. #include "gxdevice.h"        /* for gx_default_*copy_rop prototypes */
  26. #include "gxdevmem.h"        /* for gdevmem.h */
  27. #include "gdevmem.h"        /* for mem_*_strip_copy_rop prototypes */
  28. #include "gdevmrop.h"
  29.  
  30. /* Stub accessors to logical operation in graphics state. */
  31.  
  32. gs_logical_operation_t
  33. gs_current_logical_op(const gs_state * pgs)
  34. {
  35.     return lop_default;
  36. }
  37.  
  38. int
  39. gs_set_logical_op(gs_state * pgs, gs_logical_operation_t lop)
  40. {
  41.     return (lop == lop_default ? 0 : gs_note_error(gs_error_rangecheck));
  42. }
  43.  
  44. /* Stub RasterOp implementations for memory devices. */
  45.  
  46. int
  47. mem_mono_strip_copy_rop(gx_device * dev,
  48.          const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
  49.             const gx_color_index * scolors,
  50.        const gx_strip_bitmap * textures, const gx_color_index * tcolors,
  51.             int x, int y, int width, int height,
  52.             int phase_x, int phase_y, gs_logical_operation_t lop)
  53. {
  54.     return_error(gs_error_rangecheck);
  55. }
  56.  
  57. int
  58. mem_gray_strip_copy_rop(gx_device * dev,
  59.          const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
  60.             const gx_color_index * scolors,
  61.        const gx_strip_bitmap * textures, const gx_color_index * tcolors,
  62.             int x, int y, int width, int height,
  63.             int phase_x, int phase_y, gs_logical_operation_t lop)
  64. {
  65.     return_error(gs_error_rangecheck);
  66. }
  67.  
  68. int
  69. mem_gray8_rgb24_strip_copy_rop(gx_device * dev,
  70.          const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
  71.                    const gx_color_index * scolors,
  72.        const gx_strip_bitmap * textures, const gx_color_index * tcolors,
  73.                    int x, int y, int width, int height,
  74.                int phase_x, int phase_y, gs_logical_operation_t lop)
  75. {
  76.     return_error(gs_error_rangecheck);
  77. }
  78.  
  79. /* Stub default implementations of device procedures. */
  80.  
  81. int
  82. gx_default_copy_rop(gx_device * dev,
  83.          const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
  84.             const gx_color_index * scolors,
  85.          const gx_tile_bitmap * texture, const gx_color_index * tcolors,
  86.             int x, int y, int width, int height,
  87.             int phase_x, int phase_y, gs_logical_operation_t lop)
  88. {
  89.     return_error(gs_error_unknownerror);    /* not implemented */
  90. }
  91.  
  92. int
  93. gx_default_strip_copy_rop(gx_device * dev,
  94.          const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
  95.               const gx_color_index * scolors,
  96.        const gx_strip_bitmap * textures, const gx_color_index * tcolors,
  97.               int x, int y, int width, int height,
  98.                int phase_x, int phase_y, gs_logical_operation_t lop)
  99. {
  100.     return_error(gs_error_unknownerror);    /* not implemented */
  101. }
  102.  
  103. int
  104. mem_default_strip_copy_rop(gx_device * dev,
  105.          const byte * sdata, int sourcex, uint sraster, gx_bitmap_id id,
  106.               const gx_color_index * scolors,
  107.        const gx_strip_bitmap * textures, const gx_color_index * tcolors,
  108.               int x, int y, int width, int height,
  109.                int phase_x, int phase_y, gs_logical_operation_t lop)
  110. {
  111.     return_error(gs_error_unknownerror);    /* not implemented */
  112. }
  113.  
  114. /* Stub RasterOp source devices. */
  115.  
  116. int
  117. gx_alloc_rop_texture_device(gx_device_rop_texture ** prsdev, gs_memory_t * mem,
  118.                 client_name_t cname)
  119. {
  120.     return_error(gs_error_rangecheck);
  121. }
  122.  
  123. void
  124. gx_make_rop_texture_device(gx_device_rop_texture * dev, gx_device * target,
  125.          gs_logical_operation_t log_op, const gx_device_color * texture)
  126. {                /* Never called. */
  127. }
  128.